﻿using Senparc.Weixin.MP.Entities.Request;

namespace ClassLibrary1.IService
{
    /// <summary>
    /// 接口
    /// </summary>
    public interface IWeChatService
    {

        /// <summary>
        /// 用户同意授权，获取code
        /// </summary>
        /// <param name="appId"></param>
        /// <param name="appSecret"></param>
        /// <param name="redirectUrl"></param>
        /// <returns></returns>
        public string GetWeiXinCode(PostModel postModel, string echostr);

        /// <summary>
        /// 微信授权登录页面
        /// </summary>
        /// <param name="ReturnUrl">跳转地址</param>
        /// <returns></returns>
        public string Login(string ReturnUrl);
        /// <summary>
        /// 回调
        /// </summary>
        /// <param name="code"></param>
        /// <param name="state"></param>
        /// <param name="returnUrl"></param>
        public string BaseCallback(string code, string state, string returnUrl);


    }
}
